//
//  MyMenuInfoTableViewCell.m
//  MKUI
//
//  Created by 苏尚进 on 2020/9/9.
//Copyright © 2020 moon. All rights reserved.
//

#import "MyMenuInfoTableViewCell.h"

@interface MyMenuInfoTableViewCell ()

@end

@implementation MyMenuInfoTableViewCell
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
	if (self=[super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        self.cellContentView = [[UIView alloc] init];
        self.cellContentView.clipsToBounds = YES;
        self.cellContentView.layer.cornerRadius = 5;
        self.backgroundColor = [UIColor clearColor];
        [self colorTraitCollectionDidChange];
        self.cellContentView.layer.borderWidth = 1;
        [self.contentView addSubview:self.cellContentView];
	}
	return self;
}
- (void)colorTraitCollectionDidChange{
    self.cellContentView.layer.borderColor = [UIColor clearColor].CGColor;
}
- (void)traitCollectionDidChange:(UITraitCollection *)previousTraitCollection{
    [super traitCollectionDidChange:previousTraitCollection];
    [self colorTraitCollectionDidChange];
}
+ (UIEdgeInsets)contentInsets{
    return UIEdgeInsetsMake(10, 10, 0, 10);
}
- (void)customLayoutSubviews{
	[super customLayoutSubviews];
	CGRect bounds = self.contentView.bounds;
    UIEdgeInsets insets = [self.class contentInsets];
    CGRect f1 = UIEdgeInsetsInsetRect(bounds, insets);
    self.cellContentView.frame = f1;
}
- (void)customReloadCellModel{
	[super customReloadCellModel];
}
- (void)dealloc{
    
}
@end
